package com.leo.tool.jdk.jdk4.nio.httpclient;

import reactor.netty.http.client.HttpClient;

public class NettyHttpClient {

    public static void main(String[] args) {
        HttpClient.create()
                .baseUrl("https://www.baidu.com")
                .get()
                .responseContent()
                .aggregate()
                .asString()
                .subscribe(rsp -> System.out.println(rsp));
    }
}
